package com.mijie.homi.domain.commom;

import java.util.Date;
import java.util.EnumMap;

public final class Review {

	public static enum Module{
		PHOTO,
		MOOD,
		TOPIC_OPINION
	}
	
	private static String[] reviewTableMap = {
		"photoReview",
		"moodReview",
		"topicOpinionReview"
	};
	
	private static String[] eventTableMap = {
		"photo",
		"mood",
		"topicOpinion"
	};
	
	public static String getReviewTable(Module module){
		return reviewTableMap[module.ordinal()];
	}
	
	public static String getEventTable(Module module){
		return eventTableMap[module.ordinal()];
	}
	
	private int id;
	private int referId;
	private int rootId;
	private long eventId;
	private int reviewer;
	private int receiver;
	private int block;
	private String content;
	private Date createAt;
	private String tableName;
	private long parentId;//兼容老版本的评论回复,新版评论回复不使用该字段 
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getReferId() {
		return referId;
	}

	public void setReferId(int referId) {
		this.referId = referId;
	}
	
	public int getRootId() {
		return rootId;
	}

	public void setRootId(int rootId) {
		this.rootId = rootId;
	}

	public long getEventId() {
		return eventId;
	}
	public void setEventId(long eventId) {
		this.eventId = eventId;
	}
	public int getReviewer() {
		return reviewer;
	}
	public void setReviewer(int reviewer) {
		this.reviewer = reviewer;
	}
	public int getReceiver() {
		return receiver;
	}
	public void setReceiver(int receiver) {
		this.receiver = receiver;
	}
	public int getBlock() {
		return block;
	}

	public void setBlock(int block) {
		this.block = block;
	}

	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Date getCreateAt() {
		return createAt;
	}
	public void setCreateAt(Date createAt) {
		this.createAt = createAt;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public long getParentId() {
		return parentId;
	}

	public void setParentId(long parentId) {
		this.parentId = parentId;
	}
}
